/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package uk.ac.bath.machines.neuralSane;

import uk.ac.bath.legacy.Gene;

/**
 *
 * @author pjl
 */
class FloatGene  implements MyFloatList {
    private int nbits;
    Gene gene;
    private int nExp;

    public FloatGene(int nFloat,int nbits,int nExp) {
        gene=new Gene(nFloat*nbits,true);
        this.nbits=nbits;
        this.nExp=nExp;
    }
    
    public float floatAt(int i) {
        return gene.floatAt(i*nbits, nbits, nExp);
    }

}
